package pl.com.qapps.datastore.berkeley;

import java.util.Arrays;

import pl.com.qapps.datastore.berkeley.impl.RangeScan;

import com.sleepycat.je.DatabaseEntry;

public class FakeRangeScan extends RangeScan {

	public FakeRangeScan(DatabaseEntry firstKey, DatabaseEntry lastKey,
			boolean firstInclusive, boolean lastInclusive,
			boolean sortDuplicates) {
		super(firstKey, lastKey, firstInclusive, lastInclusive, sortDuplicates,
				1L);
	}

	@Override
	protected boolean nextMatch(DatabaseEntry key, DatabaseEntry entry) {
		System.out.println("next match:" + Arrays.toString(key.getData()));
		return true;
	}

}
